package utn.frsf.gabinete.fw.generator.html;

import utn.frsf.gabinete.fw.generator.Input;

public class Html5ElementRango extends Html5FormElement {

	public Html5ElementRango(Input campoEntrada){
		this.campoEntrada = campoEntrada;
	}
	
	@Override
	public String abrirTag() {
		return super.abrirTag()+"<input type=\"number\" name=\""+this.campoEntrada.getId() +"\" id=\""+this.campoEntrada.getId() +"\" min=\"0\" max=\"100\"/>"+System.getProperty("line.separator");
	}

	@Override
	public String cerrarTag() {
		// TODO Auto-generated method stub
		return "</input>" ;
	}

	@Override
	public String generarElemento() {
		StringBuffer strBff = new StringBuffer();
		strBff.append(this.abrirTag());
		strBff.append(this.cerrarTag());
		return strBff.toString();
	}

}
